<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
</head>
<body>
    <div id="app">
        爱好：
        shopping<input type="checkbox" v-model="like" value="shopping">
        swim<input type="checkbox" v-model="like" value="swim">
        sing<input type="checkbox" v-model="like" value="sing">
        <h3>您的爱好是：{{like}}</h3>
    </div>
    
    <script>
        var app = new Vue({
            el:'#app',
            data:{
                like:['swim']
            }
        })
    </script>
</body>
</html>